// import router from "@/router";
export default {
    state() {
        return {
            myinfodata: {},//请求返回来的个人信息---其中有权限----perms[]
            uAndp:{}
        }
    },
    getters: {
        myselfda(state) {
            console.log(state.myinfodata,"001现在要看的数据0010010011111");
            return state.myinfodata
        }
    },
    mutations: {
        myinfodata(state, e) {
            // console.log(state.myinfodata,"002现在要看的数据");
            console.log(123);
            state.myinfodata =e
        },
        myDate(state,e){
            state.uAndp = e
            console.log(state.uAndp,"用户名与密码");
        }
    },
    actions: {
        myinfodata(contest, e) {
            console.log(456);
            contest.commit('myinfodata', e)
        },
        myDate(contest,e){
            contest.commit('myDate', e)
        }
    }
}